package com.example.building_material_mannager.controller;

import com.example.building_material_mannager.entity.ExpenseDetails;
import com.example.building_material_mannager.entity.OtherSelect;
import com.example.building_material_mannager.service.ExpenseDetailsService;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;
import java.util.List;

@Controller
public class ExpenseDetailsController {
    @Resource
    ExpenseDetailsService expenseDetailsService;
    public List<ExpenseDetails> selectExpenseDetails(OtherSelect otherSelect){
        List<ExpenseDetails> expenseDetails= expenseDetailsService.selectExpenseDetails(otherSelect);
        return expenseDetails;
    }
}
